
strchr.o:     file format elf32-littlearm


Disassembly of section .text:

00000000 <main>:
#include <stdio.h>
#include <string.h>

void main()
{
   0:	e92d4800 	push	{fp, lr}
   4:	e28db004 	add	fp, sp, #4
   8:	e24dd008 	sub	sp, sp, #8
    char *data = "xiaozhi{sdf[234";
   c:	e59f3078 	ldr	r3, [pc, #120]	; 8c <main+0x8c>
  10:	e50b3008 	str	r3, [fp, #-8]
    char *pstr = NULL;
  14:	e3a03000 	mov	r3, #0
  18:	e50b300c 	str	r3, [fp, #-12]

    pstr = strchr(data, '{');
  1c:	e3a0107b 	mov	r1, #123	; 0x7b
  20:	e51b0008 	ldr	r0, [fp, #-8]
  24:	ebfffffe 	bl	0 <strchr>
  28:	e50b000c 	str	r0, [fp, #-12]

    if (pstr != NULL) {
  2c:	e51b300c 	ldr	r3, [fp, #-12]
  30:	e3530000 	cmp	r3, #0
  34:	0a000003 	beq	48 <main+0x48>
        printf("pstr = %s\n", pstr);
  38:	e51b100c 	ldr	r1, [fp, #-12]
  3c:	e59f004c 	ldr	r0, [pc, #76]	; 90 <main+0x90>
  40:	ebfffffe 	bl	0 <printf>
  44:	ea000001 	b	50 <main+0x50>
    }
    else {
        printf("pstr is blank\n");
  48:	e59f0044 	ldr	r0, [pc, #68]	; 94 <main+0x94>
  4c:	ebfffffe 	bl	0 <puts>
    }

    pstr = strchr(data, '[');
  50:	e3a0105b 	mov	r1, #91	; 0x5b
  54:	e51b0008 	ldr	r0, [fp, #-8]
  58:	ebfffffe 	bl	0 <strchr>
  5c:	e50b000c 	str	r0, [fp, #-12]

    if (pstr != NULL) {
  60:	e51b300c 	ldr	r3, [fp, #-12]
  64:	e3530000 	cmp	r3, #0
  68:	0a000003 	beq	7c <main+0x7c>
        printf("pstr = %s\n", pstr);
  6c:	e51b100c 	ldr	r1, [fp, #-12]
  70:	e59f0018 	ldr	r0, [pc, #24]	; 90 <main+0x90>
  74:	ebfffffe 	bl	0 <printf>
  78:	ea000001 	b	84 <main+0x84>
    }
    else {
        printf("pstr is blank\n");
  7c:	e59f0010 	ldr	r0, [pc, #16]	; 94 <main+0x94>
  80:	ebfffffe 	bl	0 <puts>
    }
}
  84:	e24bd004 	sub	sp, fp, #4
  88:	e8bd8800 	pop	{fp, pc}
  8c:	00000000 	.word	0x00000000
  90:	00000010 	.word	0x00000010
  94:	0000001c 	.word	0x0000001c
